Skip to content

S28 3556: Create GET /audit API endpoint#875

Open
pr00279 wants to merge 69 commits into
masterfrom
S28-3556
Open

S28 3556: Create GET /audit API endpoint#875
pr00279 wants to merge 69 commits into
masterfrom
S28-3556

Conversation

@pr00279

@pr00279 pr00279 commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

JIRA ticket(s)

Change description

  • Add methods for a new GET endpoint which returns audit logs in date desc. order for SUPER_USER only

Phoebe Revolta and others added 30 commits December 12, 2024 09:44
…ontrollerFT, rename test too, add null value test
@github-actions

Copy link
Copy Markdown

‼️ Change to API Spec detected

Monitor carefully when deploying to production.

Follow the release process and manually check that the Streaming Manager and portal are healthy after the release.

See https://tools.hmcts.net/confluence/spaces/S28/pages/1958069495/API+release+process for details.

lucas-phillips28 and others added 3 commits July 15, 2026 11:52
Co-authored-by: Jason Paige <jasonpaige@users.noreply.github.com>
Co-authored-by: 52960 <60659747+hmcts-jenkins-cnp[bot]@users.noreply.github.com>
Co-authored-by: Oliver Scott <oliver.scott@justice.gov.uk>

@RuthKirby RuthKirby left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

);

if (pageable.getPageNumber() > resultPage.getTotalPages()) {
throw new RequestedPageOutOfRangeException(pageable.getPageNumber(), resultPage.getTotalPages());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When would this scenario happen?

SELECT 1 FROM PortalAccess pa
WHERE pa.id = a.createdBy
AND CONCAT(pa.user.firstName, ' ', pa.user.lastName) ILIKE %:userName%))
AND ((CAST(:courtId as uuid) IS NULL AND :caseReference IS NULL)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a huge fan of this SQL. I think it's quite....big. And therefore hard to maintain. Is there a way to shift some of this into a Java filter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants